package com.cm.study.springboot.zk.client.curator;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.retry.ExponentialBackoffRetry;

public class CuratorClient {
    public static void main(String[] args) throws Exception {
        CuratorFramework curatorFramework = CreateClientExamples.createWithOptions("192.168.56.99:2181",
                new ExponentialBackoffRetry(10000, 3),
                15000,15000);
        curatorFramework.start();
        CrudExamples.create(curatorFramework,"/ddddd","ddd".getBytes());
    }
}
